package com.aivin.service;


import com.aivin.entity.PointsTask;
import com.aivin.entity.TaskReply;
import com.aivin.entity.TbPic;
import com.aivin.entity.TbUser;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * * 业务接口:站在"使用者"角度设计接口
 * 三个方面:方法定义粒度,参数,返回类型(return 类型/异常)
 */
public interface PointsService {

    public List<PointsTask> queryAllPointsTaskFy(int offset  , int limit) ;

    /****/
    public   List<PointsTask>  queryPointsTaskByUserIdFy(  @PathVariable int userId, @PathVariable int offset ,@PathVariable int limit) ;

    public int  publishTask (@PathVariable PointsTask bean  );

    public int  publishReply (@PathVariable TaskReply bean  );

    public   List<TaskReply>  queryReplyByTaskIdFy( @PathVariable int taskId ,   @PathVariable int offset ,@PathVariable int limit) ;

    public   List<TaskReply>  queryReplyByUserIdFy( @PathVariable int userId ,   @PathVariable int offset ,@PathVariable int limit) ;



}
